//
//  EFAdView.h
//  EFHealth
//
//  Created by nf on 17/2/10.
//  Copyright © 2018年 ef. All rights reserved.
//

//#import "EFBaseView.h"

typedef NS_ENUM(NSUInteger, PageControlStyle){
    
    PageControlStyleNone,//default
    PageControlStyleLeft,
    PageControlStyleCenter,
    PageControlStyleRight,
};

typedef NS_ENUM(NSUInteger, TitleShowStyle){
    TitleShowStyleNone,
    TitleShowStyleLeft,
    TitleShowStyleCenter,
    TitleShowStyleRight,
};


@interface EFAdView : UIView

@property (nonatomic,strong,readonly)UIScrollView *adScrollView;

@property (nonatomic,assign)PageControlStyle pageControlStyle ;
@property (nonatomic,assign)TitleShowStyle titleShowStyle ;

@property (nonatomic,strong)void (^callBack)(NSInteger index,id model) ;


+ (instancetype)adScrollViewWithFrame:(CGRect)frame
                           modelArray:(NSArray *)modelArray
                    imagePropertyName:(NSString *)imageName
                    titlePropertyName:(NSString *)titleName ;


@end

















